<?php
    header('Content-type:text/json');
    require "../connection.php";
    $name = $_POST['name'];
    $sql = "select * from goods where goods_name like '%".$name."%' or goods_label like '%".$name."%' ; ";
    $result = $conn->doSql($sql);
    echo json_encode($result);
?>